import Request from "../core";

export const getModuleInfo = (data, pid = uni.getStorageSync("pageId")) => {
  return Request.get(`/marketing/lowCode/h5/getModuleById?pageId=${pid}`, data);
};

export const uploadImage = (file) => {
  return Request.upload("/business_admin/upload", null, null, file);
};

export const getNearList = (data = {}) => {
  return Request.post(`/customerShop/anon/getShops`, data);
};
export const getIndustry = (data = {}) => {
  return Request.get(`/customerShop/anon/getIndustry`, data);
};
export default {
  getIndustry,
  getModuleInfo,
  uploadImage,
  getNearList,
};
